from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST

@csrf_exempt
@require_POST
def deepseek_chat(request):
    # 先返回简单响应测试路由是否工作
    return JsonResponse({'reply': '测试响应，路由配置成功！'})